<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>采购入库单</title>
<link rel="stylesheet" href="${ctx}/static/layui/css/layui.css">
<style type="text/css">
.layui-unselect.layui-form-select {
	width: 25%;
	display: -webkit-inline-box;
}

.layui-unselect.layui-form-select .layui-select-title {
	width: 100%;
}
</style>
</head>
<body>
	<script type="text/html" id="demoTable">
		<div>
			票号:<input type="text" name="obill" value="${obill}" readonly="readonly"
				style="border: 0px"> 
			<span style="float: right;">日期:<input type="text" name="odate" value="${odate}" readonly="readonly"
				style="border: 0px"></span>
		</div>
		<div style="width: 100%">
			供应商：<select name="osname" id="osname">
					<option value="${osname}">${osname}</option>
			</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			采购员：<select name="oname" id="oname">
				<option value="${oname}">${oname}</option>
			</select> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			单据号:<input type="text" name="onum" value="${onum}">&nbsp;&nbsp;&nbsp;
			仓库：<select name="odepot" id="odepot">
				<option value="${odepot}">${odepot}</option>
			</select>
		</div>
	</script>

	<table class="layui-table" id="aaa" 
		lay-data="{height:560,page:true,toolbar:'#demoTable', url : '${ctx}/test/lookysh?oid=${oid}&ostate=${ostate}&otype=${otype}'}"
		lay-filter="test">
		<thead>
			<tr>
				<th lay-data="{field:'oid',fixed: true}">商品ID</th>
				<th lay-data="{field:'gname'}">商品名称</th>
				<th lay-data="{field:'gtype'}">分类</th>
				<th lay-data="{field:'gnorms'}">规格</th>
				<th lay-data="{field:'num'}">数量</th>
				<th lay-data="{field:'gunit'}">单位</th>
				<th lay-data="{field:'price'}">单价</th>
				<th lay-data="{field:'money'}">金额</th>
				<th lay-data="{field:'gbrand'}">品牌</th>
				<th lay-data="{field:'gcode'}">条码</th>
				<th lay-data="{field:'msg'}">备注</th>
				<th lay-data="{field:'ostate',hide:'true',value:'0'}">状态</th>
			</tr>
		</thead>
	</table>

	<script src="${ctx}/static/layui/layui.all.js"></script>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script>
	</script>
</body>
</html>